package com.kt.dao;

import com.kt.po.Student;
import org.apache.ibatis.annotations.*;

@Mapper
public interface StudentMapper {

    @Delete("DELETE FROM `student` WHERE t_id = #{tid}")
    int deleteStudentByTid(@Param("tid") int tid);

    @Select("select * from `student` WHERE id = #{sid}")
    Student findStudentBySid(@Param("sid") int sid);
}
